@extends('admin.common.framework') 
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header">管理日志</h3>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <h4>日志列表</h4>
        <div class="panel panel-default">
            <div class="panel-heading">
                <form action="">
                    <ul class="nav nav-tabs">
                        <li>
                            <input type="text" name="id" class="form-control" placeholder="id">
                        </li>
                        <li>
                            <input type="text" name="admin_id" class="form-control" placeholder="管理员id">
                        </li>
                        <li>
                            <input type="text" name="rid" class="form-control" placeholder="关联id">
                        </li>
                        <li>
                            <input type="submit" class="btn btn-primary sumbit" value="提交">
                        </li>
                    </ul>
                </form>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-hover" id="menu-table">
                        <thead>
                            <tr>
                                <th class="col-lg-1">id</th>
                                <th class="col-lg-1">管理员id</th>
                                <th class="col-lg-1">管理员</th>
                                <th class="col-lg-2">具体操作</th>
                                <th class="col-lg-3">标题</th>
                                <th class="col-lg-1">关联id</th>
                                <th class="col-lg-2">操作时间</th>
                                <th class="col-lg-1">详情</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($list as $li)
                            <tr>
                                <td>{{$li['id']}}</td>
                                <td>{{$li['admin_id']}}</td>
                                <td>{{$li['admin_signname']}}</td>
                                <td>{{$li['url']}}</td>
                                <td>{{$li['title']}}</td>
                                <td>{{$li['rid']}}</td>
                                <td>{{$li['create_time']}}</td>
                                <td><span class="fa fa-edit fa-action log-view" data-id="{{$li['id']}}" data-admin-id="{{$li['admin_id']}}"
                                        data-admin-signname="{{$li['admin_signname']}}" data-url="{{$li['url']}}" data-title="{{$li['title']}}"
                                        data-rid="{{$li['rid']}}" data-create-time="{{$li['create_time']}}" data-request="{{$li['request']}}"
                                        data-ip="{{$li['ip']}}" data-toggle="modal" data-target="#admin-log-modal"></span></td>
                            </tr>
                            @endforeach
                            <tr>
                                <td colspan="8" class="page-nav">{{$list->appends($params)->links()}}</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
</div>
<div>
    <div class="modal fade" id="admin-log-modal" tabindex="-1" role="dialog" aria-labelledby="addModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="addModalLabel">日志详情</h4>
                </div>
                <div class="modal-body" style="padding:30px;">
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="table-responsive">
                                <table class="table table-striped" id="info-table">
                                    <thead>
                                        <tr>
                                            <th class="col-lg-6">键</th>
                                            <th class="col-lg-6">值</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                </table>
                            </div>
                            <div class="table-responsive">
                                    <table class="table table-striped" id="request-table">
                                        <thead>
                                            <tr>
                                                <th class="col-lg-6">键</th>
                                                <th class="col-lg-6">值</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                     
                                        </tbody>
                                    </table>
                                </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="reset" class="btn btn-default" data-dismiss="modal" id="">关闭</button>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
@section('scripts')
<script src="{{ env('APP_STATIC') }}admin/js/adminlog.js"></script>
@endsection